package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ActionDaoImpl;
import com.asset.salesforce.domain.Action;
import com.asset.salesforce.domain.ConvertedAccount;

@Service
@Transactional(readOnly=true)
public class ActionService {
	@Autowired 
	private ActionDaoImpl actionDaoImpl;
	
	@Transactional(readOnly = false)
	public void addAction(Action action){
		actionDaoImpl.add(action);
	}
	@Transactional(readOnly = true)
	public Action getActionById(Action action,Integer id){
		return actionDaoImpl.getById(id,action);
	}
	@Transactional(readOnly = true)
	public List<Action> getAllAction(Action action){
		return actionDaoImpl.getAll(action);
	}
}
